#ifndef PARTICLE_HEADER
#define PARTICLE_HEADER

#include <vector>

struct ParticleS {
	float & operator[](unsigned int i){
		return pos[i];
	}


	const float & operator[](unsigned int i) const{
		return pos[i];
	}

	glm::vec3 pos;
	glm::vec3 vel;
	glm::vec3 f;
	glm::vec3 lastA;
	unsigned int ndx;
	float mass;
};

typedef std::vector<ParticleS> ParticleCollection;
typedef ParticleCollection::iterator ParticleIter;
typedef ParticleCollection::const_iterator ConstParticleIter;

#endif